//
//  Message.h
//  聊天布局
//
//  Created by J on 16/3/3.
//  Copyright © 2016年 J. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIkit/UIKit.h>

typedef enum {
    XMGMessageTypeMe = 0,
    XMGMessageTypeOther = 1
    
}XMGMessageType;

@interface Message : NSObject
@property(nonatomic,strong)NSString* text;
@property(nonatomic,strong)NSString* time;
@property(nonatomic,assign)XMGMessageType type;

@property(nonatomic,assign)CGFloat cellHeight;//cell行高
@property(nonatomic,assign,getter=isHideTime)BOOL hideTime;//是否隐藏时间

+ (instancetype)messageWithDic:(NSDictionary*)dic;
@end
